package com.jhh.pay.driver.pojo;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

import com.alibaba.fastjson.annotation.JSONField;

import lombok.Getter;
import lombok.Setter;

public class Channel {
	
	@Getter
	@Setter
	@JSONField(deserialize=true)
	private String name;
	
	@JSONField
	private Map<String, String> properties = new HashMap<>();
	
	public void putProperties(String name, String value) {
		properties.put(name, value);
	}
	
	public Map<String, String> getProperties() {
		return Collections.unmodifiableMap(properties);
	}

}
